#include <ctime>
#include <cstdlib>
#include "ourhdr.h"

Food::Food()
	: m_value(5)
{
	add(Pixel(0,0,'$'));
}
void Food::regen(const vector<Pos> &poses){
	srand(time(0));
	int index = rand() % poses.size();
	delFront();
	addFront(Pixel(poses[index], '$'));
}

